package com.ruoyi.rocky.mapper;

import com.ruoyi.rocky.domain.PcAddTrackingNumber;
import com.ruoyi.rocky.domain.PcOrder;
import com.ruoyi.rocky.domain.PcOrderMaster;
import com.ruoyi.rocky.domain.PcOrderQuery;

import java.util.List;

public interface PcOrderMapper {

    /**
     * 查询订单
     *
     * @param orderId 订单主键
     * @return 订单
     */
    PcOrder selectPcOrderByOrderId(Long orderId);

    /**
     * 查询订单列表
     * @return 订单集合
     */
    List<PcOrder> selectPcOrderList();

    /**
     * 修改订单状态
     * @param pcOrderMaster
     * @return
     */
    int updatePcOrderStatus(PcOrderMaster pcOrderMaster);


    /**
     *根据订单状态或门店，车辆查询订单
     * @param orderQuery
     * @return
     */
    List<PcOrder> selectPcOrder(PcOrderQuery orderQuery);


    int addTrackingNumber(PcAddTrackingNumber pcAddTrackingNumber);
}
